package com.jvyou.proxy.staticlike;


import com.jvyou.proxy.Marry;
import com.jvyou.proxy.Spouse;

/**
 * @author 橘柚
 * @version 1.0-SNAPSHOT
 * @Date 2024/4/25 21:51
 * @Description 测试静态代理
 */
public class StaticProxyDemo {
    public static void main(String[] args) {
        // 创建代理对象
        Marry target = new Spouse();
        Marry proxy = new WeddingCompany(target);
        // 调用代理对象的方法
        proxy.marry();
    }
}
